<?php 
include '../Connections/KRAPPERFEC.php';
$fini = $hoy;
$ffin = $hoy;
//
$fini = strtotime('first day of this month',time());
$ffin = date('Y-m-t',time());//);('last day of this month',time());
$fini = substr($ffin,0,7)."-01";
$return = $_POST['return'];
$fmon = $_POST['moneda'];
?>

<table width="100%" border="0" cellspacing="0" cellpadding="0" id="tbl_dat_qfc">
  <tr>
    <td>Fecha de Documento</td>
    <td>
      <input name="t_qf_ini" value="<?php echo $fini;?>" type="text" class="tcal clsReq" id="t_qf_ini" size="15" maxlength="10">
      &nbsp;
    a &nbsp;
    <input name="t_qf_fin" type="text" value="<?php echo $ffin;?>" class="tcal clsReq" id="t_qf_fin" size="15">   </td>
  </tr>
  <tr>
    <td>Moneda</td>
    <td>
      <input name="t_qf_mon" type="text" disabled="disabled" value="<?php echo $fmon;?>" class="disabled" id="t_qf_mon" size="10" maxlength="5">
    </td>
  </tr>
  <tr>
    <td colspan="2"><div align="center">

      <input  style="margin-top:15px;" type="button" name="btn_qf_go" id="btn_qf_go" onClick="callReturn1()" value="Buscar Documentos">

    </div></td>
  </tr>
</table>
<script type="text/javascript">
function callReturn1(){
	if (!$("#tbl_dat_qfc").checkInput()){
		return;
	}
	<?php echo $return."(GEBI('t_qf_ini').value,GEBI('t_qf_fin').value);";?>
	closePopup();
	closexPopup();
}
</script>